home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / platforms and tools / project builder / simon / simoncontroller.h < prev    next >
Encoding:
Text File  |  2000-10-06  |  1.2 KB  |  44 lines

  1. /*
  2.     File:        SimonController.h    
  3.  
  4.     Contains:    A sample of a simple cocoa application.
  5.  
  6.     Written by:     Karl Groethe
  7.  
  8.     Copyright:    Copyright © 2000 by Apple Computer, Inc., All Rights Reserved.
  9.  
  10.             You may incorporate this Apple sample source code into your program(s) without
  11.             restriction. This Apple sample source code has been provided "AS IS" and the
  12.             responsibility for its operation is yours. You are not permitted to redistribute
  13.             this Apple sample source code as "Apple sample source code" after having made
  14.             changes. If you're going to re-distribute the source, we require that you make
  15.             it clear in the source that the code was descended from Apple sample source
  16.             code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.                         6/00     created
  20.                 
  21.  
  22. */
  23. #import <AppKit/AppKit.h>
  24. #define MAX_SEQUENCE_LENGTH 100
  25.  
  26. @interface SimonController : NSObject
  27. {
  28.     id myButton1;
  29.     id myButton2;
  30.     id myButton3;
  31.     id myButton4;
  32.     id myCounter;
  33.     id myMessage;
  34.     id myStartStop;
  35.     
  36.     int listening;
  37.     int sequenceLength;
  38.     id sequence[MAX_SEQUENCE_LENGTH];
  39. }
  40. - (void)StartStopGame:(id)sender;
  41. - (void)ListenSequence:(id)sender;
  42. - (void)PlaySequence;
  43. @end
  44.